package com.tec.cloud.notice.service;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

@Component
public class ApplicationCycleService implements InitializingBean, DisposableBean {

    NoticeService noticeService;

    public ApplicationCycleService(NoticeService noticeService) {
        this.noticeService = noticeService;
    }

    @Override
    public void afterPropertiesSet() {
//        noticeService.sendMarkDownMessage("启动通知", "证书有效期提醒服务已启动");
    }

    @Override
    public void destroy() throws Exception {
//        noticeService.sendMarkDownMessage("终止通知", "证书有效期提醒服务已终止");
    }
}